//
//  Student.h
//  08-类的扩展
//
//  Created by 402030900@qq.com on 16/7/13.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import <Foundation/Foundation.h>
// 1.规定了协议内容
@protocol GetMacBook <NSObject>
@required
// 购买MacBook
-(NSString *)buyMacBook:(NSString *)money;
@optional
// 开发票
-(void)drawBill;
@end
@interface Student : NSObject
// 委托方的写法
// 2.设定委托方
@property(nonatomic,weak) id <GetMacBook> delegate;
// 查看微信时
-(void)seeWeChat;
@end
